<?php

/**
 * default actions.
 *
 * @package    wills
 * @subpackage default
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class FrontendActions extends sfActions
{
  public function executeError404(sfWebRequest $request)
  {
  }

  /**
   * 全站首页，一些文章加一些图片
   */
  public function executeHomepage(sfWebRequest $request)
  {
    $this->areas = Doctrine::getTable('Area')
      ->getHomepageList();

    $this->texts = Doctrine::getTable('HomepageText')
      ->getHomepageList();

    //组委会动态
	$this->texts2 = Doctrine::getTable('HomepageText2')
      ->getHomepageList();
      
    $this->images = Doctrine::getTable('HomepageImage')
      ->getHomepageList();
  }

  public function executeSecure(sfWebRequest $request)
  {
    $this->getResponse()->setStatusCode(403);
  }
}
